<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/include/head.jsp"%>
<div class="pageHeader">
	<c:set var="companyTypeDesc" value='${Dict.getAlias("COMPANY_TYPE",companyType)}'/>
	<form id="outcomeForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="hbs/hbsPager/${companyType}.do?funId=${funId}" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>${companyTypeDesc}名称:<input type="text" name="map.coName_L" value="${pager.scMap.coName_L}" size="8">
						状态:
						<select name="map.activeStatusInt">
							<option value="">全部</option>
							<option ${pager.scMap.activeStatusInt=='1'?'selected':''} value="1">正常</option>
							<option  ${pager.scMap.activeStatusInt=='0'?'selected':''} value="0">已停用</option>								
						</select>
	       			</td>
				</tr>
			</table>
       		<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>

<div class="panelBar">
	<ul class="toolBar">
		<li class="line">line</li><!-- 
		<li><a class="add" href="payment/toEditPaymentRcd.do?tOf=-1&funId=${funId}" target="navTab" rel="payemntRcdDetail"><span>添加支出记录</span></a></li> -->
		
		<li><a class="icon" href='javascript:exportExcel($("#outcomeForm",navTab.getCurrentPanel()), $("#pagerForm",navTab.getCurrentPanel()))'><span>导出Excel</span></a></li>
	</ul>
</div>

<div layoutH="116" id="w_list_print">
	<table class="table" width="98%" targetType="navTab" asc="asc" desc="desc">
		<thead>
			<tr>
				<th width="30">No.</th>
				<th width="200" orderField="coName" <c:if test='${pager.orderField=="coName"}'>class="${param.orderDirection}"</c:if> >${companyTypeDesc}名称</th>
				<th width="80" orderField="shortName" <c:if test='${pager.orderField=="shortName"}'>class="${param.orderDirection}"</c:if> >简称</th>
				<th width="80" orderField="accountPrefix" <c:if test='${pager.orderField=="accountPrefix"}'>class="${param.orderDirection}"</c:if> >用户名前缀</th>
				<th width="85"  orderField="contact" <c:if test='${pager.orderField=="contact"}'>class="${param.orderDirection}"</c:if> >联系人</th>
				<th width="95"  orderField="cellPhone" <c:if test='${pager.orderField=="cellPhone"}'>class="${param.orderDirection}"</c:if> >联系电话</th>
			    <th  orderField="remark" <c:if test='${pager.orderField=="remark"}'>class="${param.orderDirection}"</c:if> >备注</th>
				<th width="105" orderField="createDate" <c:if test='${pager.orderField=="workDate"}'>class="${param.orderDirection}"</c:if> >录入时间</th>
				<th width="65"  orderField="createById" <c:if test='${pager.orderField=="createById"}'>class="${param.orderDirection}"</c:if> >录入人</th>
				<th width="55"  orderField="activeStatusInt" <c:if test='${pager.orderField=="activeStatusInt"}'>class="${param.orderDirection}"</c:if> >状态</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.resultList}" var="item" varStatus="varStatus">
				<tr target="sid_" rel="${item.id}">
					<td align="right">${varStatus.count}</td>
					<td>${item.coName}</td>
					<td>${item.shortName}</td>
					<td>${item.accountPrefix}</td>
					<td>${item.contact}</td>
					<td>${item.cellPhone}</td>
					<td>${item.remark}</td>
					<td>${item.createDate}</td>
					<td>${Dict:getAlias("USER",item.createById)}</td>
					<td>
					    ${item.activeStatusInt==1?'正常':'停用'}
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<jsp:include page="../include/pagerDiv.jsp" flush="true" />
